<?php

require_once 'Zend/Filter/Interface.php';

class Core_Filter_StripSlashes implements Zend_Filter_Interface
{
    /**
     * Value to strip tags from
     *
     * @param string $value
     */
    public function filter($value)
    {
        if (get_magic_quotes_gpc()) {
            return stripslashes($value);
        } else {
            return $value;
        }
    }
}